/*
 * @Author: hmhvictory 1400628624@qq.com
 * @Date: 2025-07-31 20:02:38
 * @LastEditors: hmhvictory 1400628624@qq.com
 * @LastEditTime: 2025-07-31 20:02:46
 * @FilePath: \Gitee实训笔记\day14\HomeWork\Test01\Vehicle.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day14.HomeWork.Test01;

public class Vehicle {
  private String type;

    public Vehicle(String type) {
        this.type = type;
    }

    public void start() {
        System.out.println(type + "启动了");
    }

    public void drive() {
        System.out.println("正在驾驶" + type);
    }

    public void stop() {
        System.out.println(type + "停止了");
    }
}
